let x = 100;

function print_build_msg(argv, config, cdn_modules) {
    console.log('当前的 mode 是 ' + argv.mode);
    if (argv.mode === "production") {
        config.devtool = 'source-map';
        console.log('add source-map');
    } else if (argv.mode === "development") {
        //  去掉 react modules path 依赖的 .min  这几个字
        cdn_modules.react.forEach(item => {
                if (item.style == undefined)
                    item.path = item.path.replace('.min', '');
            }
        )
    }
    // console.log('i am from test_conf.js my value is ', JSON.stringify(cdn_worker.getExternalModules()));
    // console.log(process.env);
}

module.exports = {
    print_build_msg,
    x
};
